import React, { useState, useEffect } from 'react'
import store from './redux/store'
import Count from './components/Count'

export default function App() {
  const [x, setX] = useState(0)
  useEffect(() => {
    store.subscribe(() => {
      setX((x) => {
        return x + 1
      })
    })
  }, [])
  return (
    <div>
      <Count></Count>
    </div>
  )
}
